package com.hw1102.Test4;

public class Test {
    public static void main(String[] args) {
        Company company = new Company();
        Emp manager = new Manager("小明", 8000, 0 ,500);
        Emp clerk = new Clerk("小亮", 6000, 0);
        for (int i = 0; i <4; i++){
            System.out.println("====第"+i+"个月====");
            company.salary(manager);
            company.salary(clerk);
        }
    }
}
